<p>
  <b>First name:</b>
  <%=h @patient_data.first_name %>
</p>

<p>
  <b>Laste name:</b>
  <%=h @patient_data.laste_name %>
</p>

<p>
  <b>Adress:</b>
  <%=h @patient_data.adress %>
</p>

<p>
  <b>Email:</b>
  <%=h @patient_data.email %>
</p>

<p>
  <b>Pesel:</b>
  <%=h @patient_data.pesel %>
</p>

<p>
  <b>Telpehone number:</b>
  <%=h @patient_data.telpehone_number %>
</p>

<p>
  <p>Umówione badania pacjenta:</p>
  <table>
  <tr>
    <th>Examination type</th>
  </tr>

<% @patient_data.order_examinations.each do |order_examination| %>
  <tr>
    <td><%=h order_examination.examination_type.name%></td>
    <td><%= link_to 'Show', order_examination %></td>
    <td><%= link_to 'Edit', edit_order_examination_path(order_examination) %></td>
    <td><%= link_to 'Destroy', order_examination, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

</p>



<%= link_to 'Edit', edit_patient_data_path(@patient_data) %> |
<%= link_to 'Back', patient_datas_path %>